﻿<%@ Page Language="C#" MasterPageFile="~/UI/Main/Main.Master" AutoEventWireup="true"
    CodeBehind="M_add_new_videos.aspx.cs" Inherits="OrganizedIN.UI.Videos.M_add_new_videos"
    Title="Add New Video" %>

<%@ Register Assembly="AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
    Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="middle_tab">
        <div id="middle_tab_title" align="center">
            My Videos</div>
        <div class="middle_tab_content">
            <br />
            <h4>
                You can Add, Search, Add Rating, Add To Album, Re-Name, Re-Date (Add to a future
                Date), Delete, Archive, and Share with your Group by clicking on the below icons:</h4>
            <br />
        </div>
        <div id="icon_link_wrapper" align="center">
            <div id="icon_primary_documents" align="center">
                <img src="../../images/add_02.jpg" alt="Add New" name="Add New" width="75" height="75"
                    border="0" id="Add New" /></div>
            <div id="icon_secondary" align="center">
                <a href="M_search_my_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Search','','../../images/search_02.jpg',1)">
                    <img src="../../images/search_01.jpg" alt="Search" name="Search" width="75" height="75"
                        border="0" id="Search" /></a></div>
            <div id="icon_secondary" align="center">
                <a href="add_rating_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Add Rating','','../../images/add_rating_02.jpg',1)">
                    <img src="../../images/add_rating_01.jpg" alt="Add Rating" name="Add Rating" width="75"
                        height="75" border="0" id="Add Rating" /></a></div>
            <div id="icon_secondary" align="center">
                <a href="add_to_videoalbum.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Add to Album','','../../images/add_to_videoalbum_02.jpg',1)">
                    <img src="../../images/add_to_videoalbum_01.jpg" alt="Add to Album" name="Add to Album"
                        width="75" height="75" border="0" id="add_to_album" /></a></div>
            <div id="icon_secondary" align="center">
                <a href="rename_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Re-Name','','../../images/rename_02.jpg',1)">
                    <img src="../../images/rename_01.jpg" alt="Re-Name" name="Add Re-Name" width="75"
                        height="75" border="0" id="Re-Name" /></a></div>
            <div id="icon_secondary" align="center">
                <a href="redate_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Re-Date','','../../images/redate_02.jpg',1)">
                    <img src="../../images/redate_01.jpg" alt="Re-Date" name="Re-Date" width="75" height="75"
                        border="0" id="Re-Date" /></a></div>
            <div id="icon_secondary" align="center">
                <a href="share_with_group_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Share with group','','../../images/share_02.jpg',1)">
                    <img src="../../images/share_01.jpg" alt="Share with group" name="Share with group"
                        width="75" height="75" border="0" id="Share with group" /></a></div>
            <div id="icon_secondary" align="center">
                <a href="delete_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Delete','','../../images/delete_02.jpg',1)">
                    <img src="../../images/delete_01.jpg" alt="Delete" name="Delete" width="75" height="75"
                        border="0" id="Delete" /></a></div>
            <div id="icon_secondary" align="center">
                <a href="archive_videos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Archive','','../../images/archive_02.jpg',1)">
                    <img src="../../images/archive_01.jpg" alt="Archive" name="Archive" width="75" height="75"
                        border="0" id="Archive" /></a></div>
        </div>
        <div class="documents_table">
            <table width="97%" border="0" cellspacing="1" cellpadding="5" align="center">
                <tr bgcolor="#d8e1f3">
                    <td colspan="4" align="left">
                        <h4>
                            <strong>
                                <asp:Label ID="lblTodayDate" runat="server"></asp:Label></strong><a href="#"><strong>ReDate</strong></a></h4>
                    </td>
                    <td>
                        <asp:Label ID="lblUserID" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td width="16%" align="right" class="middle_text3">
                        Video Title:
                    </td>
                    <td colspan="3" align="left">
                        <asp:TextBox ID="txttitle" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatortitle" runat="server" ControlToValidate="txttitle"
                            ErrorMessage="Title is required"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td width="16%" align="right" class="middle_text3">
                        Video Summary:
                    </td>
                    <td colspan="3" align="left">
                        <asp:TextBox ID="txtVideoSummary" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorsumarry" runat="server" ControlToValidate="txtVideoSummary"
                            ErrorMessage="Summary is required"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td align="right" class="middle_text3">
                        Add Video Rating:
                    </td>
                    <td colspan="3" align="left">
                        <asp:DropDownList ID="ddlRating" runat="server" CssClass="action_list">
                            <asp:ListItem Value="5" Text="5 Star"></asp:ListItem>
                            <asp:ListItem Value="4" Text="4 Star"></asp:ListItem>
                            <asp:ListItem Value="3" Text="3 Star"></asp:ListItem>
                            <asp:ListItem Value="2" Text="2 Star"></asp:ListItem>
                            <asp:ListItem Value="1" Text="1 Star"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorrating" runat="server" ControlToValidate="ddlRating"
                            ErrorMessage="Please select rating"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td align="right" class="middle_text3">
                        Add Event Name:
                    </td>
                    <td colspan="3" align="left">
                        <asp:TextBox ID="txtAddEvent" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorevent" runat="server" ControlToValidate="txtAddEvent"
                            ErrorMessage="Event is required"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td align="right" class="middle_text3">
                        Add to Album:
                    </td>
                    <td colspan="3" align="left">
                        <asp:DropDownList ID="drpAlbum" runat="server" AutoPostBack="True">
                            <asp:ListItem Value="">Default Album</asp:ListItem>
                            <asp:ListItem Value="0">+Create Album</asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="drpAlbum"
                            ErrorMessage="Please select an album" InitialValue="0"></asp:RequiredFieldValidator>
                        <asp:Panel ID="pnlAddAlbum" runat="server" Width="500px">
                            <label>
                                <asp:TextBox ID="txtNewAlbum" runat="server"></asp:TextBox>
                            </label>
                            <asp:Button ID="btnCreateAlbum" runat="server" OnClick="btnCreateAlbum_Click" Text="Create Album"
                                ValidationGroup="Other" />
                            <asp:Button ID="btnCancelAddAlbum" runat="server" OnClick="btnCancelAddAlbum_Click"
                                Text="Cancel" ValidationGroup="Another" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtNewAlbum"
                                ErrorMessage="Enter an Album Name" ValidationGroup="Other"></asp:RequiredFieldValidator>
                        </asp:Panel>
                        <asp:Label ID="lblalbummsg" ForeColor="Red" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td align="right" class="middle_text3">
                        Upload Video(s):
                    </td>
                    <td width="28%" align="left">
                        <asp:DropDownList ID="dropDownVideoOption" runat="server" OnSelectedIndexChanged="dropDownVideoOption_SelectedIndexChanged"
                            OnTextChanged="dropDownVideoOption_SelectedIndexChanged" AutoPostBack="True">
                            <asp:ListItem Selected="True" Value="V">Upload Video</asp:ListItem>
                            <asp:ListItem Value="E">Embed Youtube Video</asp:ListItem>
                        </asp:DropDownList>
                        <br />
                        <asp:TextBox ID="txtEmbedURL" runat="server" Visible="False"></asp:TextBox>
                        <asp:FileUpload ID="txtFileUpload" runat="server" />
                    </td>
                    <td width="12%" align="left">
                        <a href="#" class="import_button">
                            <input type="submit" name="button" id="Submit1" value="Sign Up" style="display: none;" />
                        </a>
                    </td>
                    <td width="44%" align="left">
                        <a href="#" class="search_o">
                            <input type="submit" name="button3" id="Submit2" value="Sign Up" style="display: none;" />
                        </a>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td align="right" class="middle_text3">
                        Share:
                    </td>
                    <td colspan="3" align="left">
                        <asp:TextBox ID="txtShare" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td align="right" class="middle_text3">
                        &nbsp;
                    </td>
                    <td colspan="3" align="left">
                        <%--<a href="#" class="save_button">--%>
                        <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                        <%--</a>--%>
                    </td>
                </tr>
                <tr bgcolor="#d8e1f3">
                    <td colspan="4" align="center" class="middle_text3">
                        <asp:Label ID="lblStatus" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
